package com.rocksdata.mc.ui.activity;

import android.os.Bundle;

import com.ctz.commonframe.ui.BaseActivity;
import com.rocksdata.mc.R;
import com.rocksdata.mc.ui.fragment.AnnouncementFragment;

import org.xutils.view.annotation.ContentView;

/**
 * Created by 陈堂正 on 2017/4/26.
 */
@ContentView(R.layout.activity_notification)
public class AnnouncementActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        AnnouncementFragment fragment = new AnnouncementFragment();
        Bundle data = new Bundle();
        data.putBoolean("showCancel", getIntent().getBooleanExtra("showCancel", false));
        fragment.setArguments(data);
        getSupportFragmentManager().beginTransaction().replace(R.id.layout_notification_container, fragment).commitAllowingStateLoss();
    }
}
